package me.softwareengineer.guice.rendering.domain;

import me.softwareengineer.guice.rendering.listener.Listener;
import me.softwareengineer.guice.rendering.listener.OnNewLineEvent;

/**
 * Represents a new line or line break (it's up to the Renderers to decide if it
 * should be outputted as a new line or as a line break in the given syntax).
 * 
 * <pre>
 * This class is thread-safe and can be cached/re-used and used concurrently.
 * </pre>
 */
public class NewLineElement extends Element {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void render(Listener listener) {
		OnNewLineEvent e = new OnNewLineEvent();
		listener.onEvent(e);
	}
}
